package d1_static_field;

public class User {
    public static int number;

    public User(){
        //User.number++;
        // 注意:访问当前类的静态变量,可以省略类名不写
        number++;
    }
}
